package main

import (
	"github.com/buaazp/fasthttprouter"
	"github.com/valyala/fasthttp"
	"log"
)


func main() {

	// 创建路由
	router := fasthttprouter.New()

	// post方法
	router.POST("/post/json", jsonTestPost)
	router.POST("/post/pto", ptoTestPost)

	// 启动web服务器，监听 0.0.0.0:80
	log.Fatal(fasthttp.ListenAndServe(":8080", router.Handler))
}